package java4_6.Homework3;

import java.net.InetAddress;
public class Homework {
    public static void main(String[] args) {
        try {
            InetAddress[] addresses = InetAddress.getAllByName("sina.com");
            for (InetAddress address : addresses) {
                System.out.println(address.getHostAddress());
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
}
}
